﻿<Window x:Class="Liberty.Windows.Home"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:Vectors="clr-namespace:Liberty.Metro.Controls.Vectors"
		xmlns:CloseableTab="clr-namespace:CloseableTabItemDemo"
        xmlns:ye="clr-namespace:Liberty"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
        Title="Home Window - Liberty" 
        d:DesignHeight="700" d:DesignWidth="1200"
        WindowStartupLocation="CenterScreen" AllowsTransparency="True" ResizeMode="CanResize" WindowStyle="None"
        Background="{DynamicResource MainBackgroundBrush}" SnapsToDevicePixels="True" 
        StateChanged="Window_StateChanged">
    <Border x:Name="borderFrame" BorderBrush="{DynamicResource LibertyAccentBrush}" BorderThickness="1,1,1,23">
        <Grid>
            <Grid x:Name="containerFrame">
                <Grid x:Name="homeHeader" VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="60">
                    <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="Liberty__2__logo" Width="38.099" Clip="F1 M 0,0L 666.667,0L 666.667,666.667L 0,666.667L 0,0" HorizontalAlignment="Left" Margin="8,8,0,13.833" d:LayoutOverrides="VerticalAlignment">
						<Path Width="37.334" Height="37.337" Stretch="Fill" Data="F1 M 309.961,50.3724C 358.72,46.1458 408.534,54.6138 453.081,74.9191C 516.428,103.387 568.521,155.812 596.534,219.359C 623.641,279.706 628.734,349.56 610.748,413.212C 597.121,462.239 570.081,507.466 533.348,542.679C 496.454,578.252 449.814,603.586 399.88,615.159C 332.121,631.212 258.654,621.292 197.6,587.787C 168.254,571.812 141.694,550.692 119.641,525.599C 86.6543,488.306 63.7076,442.239 53.8009,393.454C 42.8543,340.319 47.4676,284.107 66.9463,233.466C 84.0529,188.679 112.613,148.292 149.254,117.359C 194.148,79.0671 251.173,55.3724 309.961,50.3724 Z ">
							<Path.Fill>
								<SolidColorBrush Color="{DynamicResource LibertyAccentBrushColour}"/>
							</Path.Fill>
						</Path>
						<Path Width="29.175" Height="31.526" Canvas.Left="4.078" Canvas.Top="2.86" Stretch="Fill" Fill="{DynamicResource MainBackgroundBrush}" Data="F1 M 282.6,98.5729C 330.427,88.733 381.28,92.3864 426.667,110.693C 453.015,121.386 477.814,136.386 498.654,155.773C 498.962,164.64 498.068,173.626 499.094,182.426C 515.508,200.48 529.334,221 539.2,243.36C 557.534,284.173 563.134,330.56 555.08,374.573C 547.628,415.986 528.227,455.226 499.64,486.12C 498.282,487.72 498.8,490.013 498.628,491.946C 498.694,499.586 498.628,507.226 498.694,514.866C 454.56,555.48 394.534,577.945 334.64,577.346C 274.72,577.933 214.654,555.426 170.534,514.773C 170.747,506.266 170.707,497.746 170.64,489.24C 170.814,486.053 167.76,484.253 166.015,482.026C 135.84,447.773 116.774,404 111.947,358.626C 104.894,295.76 126.16,230.266 169.187,183.826C 171.054,182.173 170.587,179.493 170.707,177.266C 170.64,170.093 170.667,162.933 170.694,155.76C 201.88,127.04 241.187,107.373 282.6,98.5729 Z "/>
						<Path Width="15.107" Height="13.373" Canvas.Left="11.157" Canvas.Top="12.416" Stretch="Fill" Data="F1 M 276.094,239.986C 315.587,240 355.08,240 394.574,239.986C 414.027,274.812 432.6,310.12 451.334,345.347C 443.107,360.014 434.948,374.72 426.64,389.347C 406.16,389.306 385.68,389.372 365.2,389.306C 354.788,407.812 344.907,426.626 334.88,445.359C 315.28,445.319 295.694,445.334 276.094,445.347C 256.667,412.306 238.08,378.787 219.334,345.347C 238.067,310.12 256.64,274.827 276.094,239.986 Z ">
							<Path.Fill>
								<SolidColorBrush Color="{DynamicResource LibertyAccentBrushColour}"/>
							</Path.Fill>
						</Path>
						<Path Width="6.364" Height="5.639" Canvas.Left="19.396" Canvas.Top="22.751" Stretch="Fill" Data="F1 M 369.854,398.879C 386.559,398.56 403.279,398.787 419.987,398.759C 427.761,413.479 435.934,428 443.481,442.84L 443.587,443.812C 435.854,457.639 428.321,471.667 420.027,485.132C 403.226,485.412 386.414,485.28 369.601,485.186C 361.574,471.412 354.134,457.294 345.867,443.692C 353.747,428.692 361.867,413.827 369.854,398.879 Z ">
							<Path.Fill>
								<SolidColorBrush Color="{DynamicResource LibertyAccentBrushColourSecondary}"/>
							</Path.Fill>
						</Path>
					</Canvas>
                    <TextBlock x:Name="lblTitle" Text="Start Page - Liberty 2.0" Foreground="{DynamicResource TextBrushSecondary}" VerticalAlignment="Top" HorizontalAlignment="Stretch" FontSize="15" Margin="53.909,15.626,276.84,0" TextTrimming="CharacterEllipsis" FontFamily="/Liberty;component/Fonts/#Segoe WP SemiLight"/>

                    <Thumb 
						x:Name="headerThumb" 
						Opacity="0" 
						Background="{x:Null}" 
						Foreground="{x:Null}" Height="52" VerticalAlignment="Top"
                        DragDelta="headerThumb_DragDelta"
                        MouseDoubleClick="headerThumb_MouseDoubleClick"
						/>

                    <StackPanel x:Name="homeHeaderActionButtons" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Height="26" Margin="0,0,0,0">
                        <Button x:Name="btnActionSupport" ToolTip="Support" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" Visibility="Collapsed" VerticalAlignment="Top" d:LayoutOverrides="Height" Click="btnActionSupport_Click">
                            <TextBlock Text="?" FontFamily="/Liberty;component/Fonts/#Segoe WP Semibold" FontSize="14" />
                        </Button>

                        <Button x:Name="btnActionMinimize" ToolTip="Minimize" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" VerticalAlignment="Top" d:LayoutOverrides="Height" Click="btnActionMinimize_Click">
                            <Vectors:MinimizeModule Width="34" Height="26"/>
                        </Button>

                        <Button x:Name="btnActionRestore" ToolTip="Restore" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" Visibility="Collapsed" Click="btnActionRestore_Click">
                            <Vectors:RestoreModule Width="34" Height="26"/>
                        </Button>
                        <Button x:Name="btnActionMaxamize" ToolTip="Maxamize" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" Click="btnActionMaxamize_Click">
                            <Vectors:MaxamizeModule Width="34" Height="26"/>
                        </Button>

                        <Button x:Name="btnActionClose" ToolTip="Close" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" Click="btnActionClose_Click">
                            <Vectors:CloseModule Width="34" Height="26"/>
                        </Button>
                    </StackPanel>
                </Grid>
                <Grid x:Name="homeContent" Margin="0,52.75,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Grid Grid.Column="0" x:Name="tabContent">
                        <TabControl x:Name="homeTabControl" Background="{x:Null}" Margin="0,0,0,0" BorderBrush="{DynamicResource LibertyAccentBrush}" Foreground="White" BorderThickness="0,2,0,0" Padding="2" SelectionChanged="homeTabControl_SelectionChanged">
                            <CloseableTab:CloseableTabItem Header="Start Page" />
                            <TabItem Header="Gamesaves, lol" />
                            <TabItem Header="cyberdyne.map" />
                            <TabItem Header="z00__testchamber.map" />
                        </TabControl>
                    </Grid>
                </Grid>
            </Grid>

            <TextBlock x:Name="Status"  Margin="5,0,0,-19" VerticalAlignment="Bottom" HorizontalAlignment="Left" Text="Ready..." Foreground="{DynamicResource TextBrushPrimary}" FontFamily="{DynamicResource MetroFontRegular}" />

            <Grid Margin="-1, -1, -1, -23" x:Name="homeResizing">
                <!--Resize-->
                <!--Corner-->
                <Vectors:ResizeModule x:Name="ResizeDropVector" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,5,5" Cursor="SizeNWSE"/>
                <Thumb x:Name="ResizeDrop" DragDelta="ResizeDrop_DragDelta" Opacity="0" Background="{x:Null}" Foreground="{x:Null}" Width="11" Height="11" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,1,1" Cursor="SizeNWSE" />

                <!--Side-->
                <Thumb x:Name="ResizeRight" DragDelta="ResizeRight_DragDelta" Opacity="0" Background="{x:Null}" Foreground="{x:Null}" Width="8" Margin="0,27.333,0,11" HorizontalAlignment="Right" VerticalAlignment="Stretch" Cursor="SizeWE" />

                <!--Bottom-->
                <Thumb x:Name="ResizeBottom" DragDelta="ResizeBottom_DragDelta" Opacity="0" Background="{x:Null}" Foreground="{x:Null}" Height="8" Margin="0,0,11,0" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Cursor="SizeNS" />
            </Grid>

            <Rectangle x:Name="OpacityMask"  Opacity="0.65" Fill="{DynamicResource HomeOpacityBrush}" Visibility="Collapsed" />
        </Grid>
    </Border>
</Window>
